#!/bin/bash
#

DEFAULT_TRAC_HOME=/ZZZZZZZZZZ_SERVERNAME_ZZZZZZZZZZ/trac/projects
TRAC_HOME=$DEFAULT_TRAC_HOME

NUM_ARGS=$#

if [ $NUM_ARGS = 1 ];
then
    TRAC_HOME=$1
fi

if [ ! -d $TRAC_HOME ];
then
    echo "Error : $TRAC_HOME is not a valid directory"
    exit 1
fi

tracd -d -p 3000 -e $TRAC_HOME 
RET=$?

exit $RET
